package boot2.test;

import org.apache.struts.tiles.Controller;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScan.Filter;
import org.springframework.context.annotation.FilterType;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

@ComponentScan(value="com.*",includeFilters={
		@Filter(type=FilterType.ANNOTATION,value=Controller.class)})
@EnableWebMvc
public class WebConfig {

	public ViewResolver initViewResolver(){
		return new InternalResourceViewResolver();
	}
}
